﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Main.aspx.cs" Inherits="Main" %>

<html>
<head>
    <title>智能OA办公服务平台</title>
    <link href="../Style/Style.css" type="text/css" rel="STYLESHEET" />
    <style type="text/css">
        #menuTree A
        {
            color: #566984;
            text-decoration: none;
        }
    </style>

    <script language="javascript" type="text/javascript">
        function visible_click() {
            if (td1.className == "") {
                td1.className = "tddisp";
                main.middle_picture.src = "../images/Jt_right.gif";
            }
            else if (td1.className == "tddisp") {
                td1.className = "";
                main.middle_picture.src = "../images/Jt_left.gif";
            }
        }

        function openURL(url) {
            window.open(url, "rform");
        }
         
    </script>

</head>
<body class="panel" topmargin="0" leftmargin="0" scroll="no" onload="setInterval(nowtime,1000)"
    style="background-image: url(../images/bg.gif); margin: 0px; background-repeat: repeat-x">
    <form id="main" method="post" runat="server">
    <div id="logo" style="background-image: url(../images/logo.png); background-repeat: no-repeat; height:20%;">
        <div style="padding-right: 150px; background-position: right 50%; display: block;
            padding-left: 0px; background-image: url(../images/bg_banner_menu.gif); padding-bottom: 0px;
            padding-top: 3px; background-repeat: no-repeat; height:30px; text-align: right">
            <a class="bai" href="MyDesk.aspx" target="rform">
                <img align="absMiddle" alt="我的办公桌" border="0" height="16" src="../images/TreeImages/mytable.gif"
                    width="16" />&nbsp;桌面</a>&nbsp; <a class="bai" href="../Personal/SystemTiXing.aspx"
                        target="rform">
                        <img align="absMiddle" alt="更改界面主题风格" border="0" height="16" src="../images/TreeImages/theme.gif"
                            width="16" />&nbsp;提醒</a>&nbsp; <a class="bai" href="../Default.aspx">
                                <img align="absMiddle" alt="注销用户" border="0" src="../images/login.gif" />&nbsp;注销</a>&nbsp;&nbsp;&nbsp;
        </div>
        <div style="display: block; height: 45px; text-align: right;">
            <div style="font-family: @微软雅黑; font-size: 12px;">
                <div style="text-align: center; padding-bottom: 2px; padding-left: 2px; width: 55%;
                    padding-right: 2px; float: right; vertical-align: middle; padding-top: 2px">
                    <%if (myWeather.TodayStartIcon == myWeather.TodayEndIcon)
                      { %>
                    <img src="../weather/icon/<%=myWeather.TodayStartIcon%>" alt="icon" style="width: 20px;
                        height: 20px;" border="0" />
                    <% }
                      else
                      {%>
                    <img src="../weather/icon/<%=myWeather.TodayStartIcon%>" alt="icon" style="width: 20px;
                        height: 20px;" border="0" />
                    <img src="../weather/icon/<%=myWeather.TodayEndIcon%>" alt="icon" style="width: 20px;
                        height: 20px;" border="0" />
                    <% } %>
                    <span style="color: #ff6600; font-weight: bold; vertical-align: middle;">
                        <%=myWeather.TodayTheWeather%></span>
                </div>
            </div>
        </div>
        <div style="background-image: url(../images/bg_nav.gif); background-repeat: repeat-x;
            height: 30px;">
            <table cellspacing="0" cellpadding="0" width="100%">
                <tbody>
                    <tr>
                        <td>
                            <div>
                                <img src="../images/nav_pre.gif" align="absMiddle">
                                &nbsp;&nbsp;<img align="absMiddle" height="18" src="../images/node_user.gif" width="18" />&nbsp;<strong><span
                                    style="color: #ffffff"><%= ZWL.Common.PublicMethod.GetSessionValue("UserName")%></span></strong>
                                &nbsp;&nbsp;<img align="absMiddle" height="18" src="../images/U01.gif" width="18" />&nbsp;<strong><span
                                    style="color: #ffffff">联机</span></strong>
                            </div>
                        </td>
                        <td align="right" width="70%">
                            <span style="padding-right: 50px">

                                <script language="JavaScript">
                                    today = new Date();
                                    function initArray() {
                                        this.length = initArray.arguments.length
                                        for (var i = 0; i < this.length; i++)
                                            this[i + 1] = initArray.arguments[i]
                                    }
                                    var d = new initArray(
     "星期日",
     "星期一",
     "星期二",
     "星期三",
     "星期四",
     "星期五",
     "星期六");
                                    document.write(
     ' <span id="t2" style=" color:White;">',
     today.getYear(), "年",
     today.getMonth() + 1, "月",
     today.getDate(), "日   ",
     d[today.getDay() + 1],
     ""); 
                                </script>

                                &nbsp;<img align="absMiddle" src="../images/time.gif" />
                                <span id="t1" style="color: White;">

                                    <script language="javascript" type="text/javascript">                                        todaytime1 = new Date(); t1.innerText = todaytime1.getHours() + '：' + todaytime1.getMinutes() + '：' + todaytime1.getSeconds();</script>

                                </span>&nbsp;&nbsp;

                                <script language="javascript" type="text/javascript">
                                    function nowtime() {
                                        todaytime = new Date();
                                        t1.innerText = todaytime.getHours() + '：' + todaytime.getMinutes() + '：' + todaytime.getSeconds()
                                    }
                                </script>

                            </span>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    <table width="100%" height="86%" cellspacing="0" cellpadding="0" border="0" style="background-position-y: -120px;
        background-image: url(../images/bg.gif); background-repeat: repeat-x">
        <tr>
            <td colspan="2">
                <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td width="180" height="100%" valign="top" class="" id="td1">
                            <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td width="180" bgcolor="#D4E4F1" height="100%" style="padding-bottom: 5px;">
                                        <table height="100%" cellspacing="0" cellpadding="0" width="100%">
                                            <tbody>
                                                <tr>
                                                    <td id="menuTree" style="height: 100%; background-color: white" valign="top">
                                                        <table width="180" height="100%" border="0" cellpadding="0" cellspacing="0">
                                                            <tr>
                                                                <td height="28" background="../images/Tree_01.jpg">
                                                                    &nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #ffffff">导航</span>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td background="../images/Tree_03.jpg" style="padding-bottom: 3px; padding-top: 1px;
                                                                    padding-left: 6px; padding-right: 3px;">
                                                                    <iframe width="100%" height="100%" src="MenuTree.aspx"></iframe>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td height="25" background="../images/Tree_04.jpg">
                                                                    &nbsp;
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td width="0%">
                            <table width="0%" border="0" cellpadding="0" cellspacing="0" height="100%">
                                <tr>
                                    <td background="../images/BackWhite.gif" height="27px">
                                    </td>
                                </tr>
                                <tr>
                                    <td bgcolor="#D4E4F1">
                                        <img onclick="visible_click()" style="cursor: hand;" src="../images/Jt_left.gif"
                                            id="middle_picture">
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td width="100%" height="100%">
                            <table border="0" width="100%" cellspacing="0" cellpadding="0" height="100%">
                                <tr>
                                    <td>
                                        <table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
                                            <tr>
                                                <td valign="top" width="100%" height="100%" style="padding-bottom: 5px; padding-top: 5px;
                                                    padding-left: 5px;">
                                                    <iframe name="rform" frameborder="0" marginheight="0" marginwidth="0" width="100%"
                                                        height="100%" bordercolor="#ffffFF" src="MyDesk.aspx" border="0"></iframe>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr style="background-image: url(../images/bg_nav.gif); background-repeat: repeat-x;">
            <td height="20" colspan="2" valign="middle">
                <table border="0" cellpadding="0" cellspacing="0" class="small" style="background-image: url(../images/bg_nav.gif);
                    background-repeat: repeat-x;" width="100%">
                    <tr>
                        <td valign="middle">
                            &nbsp;&nbsp;<iframe name="bform" frameborder="0" marginheight="0" marginwidth="0"
                                width="150px" height="20px" src="Blank.aspx" border="0"></iframe>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
